package com.xbongbong.pro.message.pojo.dto;/*/*/

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Description: 消息设置详情接口DTO
 * @author 魏荣杰
 * @date 2019/1/4 11:00
 * @version v1.0
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class MessageSetDetailDTO extends BaseDTO{

    private static final long serialVersionUID = -7950917210294372739L;
    /**
     * 菜单ID列表
     */
    private List<Long> menuId;

    @NotNull(message = "{dto.msg.messageSetDetail.saasMark.NotNull}")
    @DecimalMin(value = "1", message = "{dto.msg.messageSetDetail.saasMark.DecimalMin}")
    @DecimalMax(value = "2", message = "{dto.msg.messageSetDetail.saasMark.DecimalMax}")
    private Integer saasMark;

    @NotNull(message = "{dto.msg.messageSetDetail.saasIds.NotNull}")
    private List<Long> saasIds;

    @NotNull(message = "{dto.msg.messageSetDetail.appId.NotNull}")
    private Long appId;
}
